import { PageParam } from '@/api';
import { SysUser } from '../../user/model';

export interface SysWechatUser {
  id?: number | string;
  createTime?: Record<string, unknown>;
  updateTime?: Record<string, unknown>;
  createUserId?: number;
  updateUserId?: number;
  isDelete?: boolean;
  userId?: number;
  platformType?: Record<string, unknown>;
  openId: string;
  sessionKey?: string;
  unionId?: string;
  nickName?: string;
  avatar?: string;
  mobile?: string;
  sex?: number;
  language?: string;
  city?: string;
  province?: string;
  country?: string;
  accessToken?: string;
  refreshToken?: string;
  expiresIn?: number;
  scope?: string;
  sysUser?: SysUser;
}

export interface SysWechatUserParam extends PageParam {
  nickName?: string;
  phoneNumber?: string;
}
